package com.ddone.controller;

import com.ddone.bean.DockerUser;
import com.ddone.service.DockerUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ddone
 * @date 2024/4/10-13:17
 */
@RestController
@RequestMapping("/docker-user")
public class DockerUserController {

    @Resource
    private DockerUserService dockerUserService;

    @GetMapping
    public List<DockerUser> list(){
        return dockerUserService.list();
    }
}
